<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>内边距会影响盒子实际大小</title>
    <style>
            div {
                width: 160px;
                height: 160px;
                background-color: pink;
                padding: 20px;
            }
         
        </style>
    </head>
    <body>
        <div>
            padding会影响盒子实际大小padding会影响盒子实际大小padding会影响盒子实际大小padding会影响盒子实际大小
        </div>
       
</body>
</html>